<!DOCTYPE html>
<html lang="en">
<head>
<base href="${basePath}">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset="utf-8">
<title>订单管理 - 商户中心 - 云支付|云收款</title>
<#include "/views/ftl/base/shop_manage_header.ftl">


</head>
<body class="no-skin">
<#include "/views/ftl/base/shop_manage_top.ftl">
<div class="main-container" id="main-container"> 
<#import "/views/ftl/base/shop_manage_left.ftl" as r>
<@r.thebean urlname="orderlist"/>

			<!-- /section:basics/sidebar -->
			<div class="main-content">
				<!-- #section:basics/content.breadcrumbs -->
				<div class="breadcrumbs" id="breadcrumbs">
					<script type="text/javascript">
						try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
					</script>

					<ul class="breadcrumb">
						<li>
							<i class="ace-icon fa fa-home home-icon"></i>
							<a href="shopmanage/Index_index">首页</a>
						</li>

						<li>
							<a href="shopmanage/TranOrder_orderListPage">订单列表</a>
						</li>
						<!--<li class="active">Form Elements</li>-->
					</ul><!-- /.breadcrumb -->

					
					<!-- /section:basics/content.searchbox -->
				</div>

				<!-- /section:basics/content.breadcrumbs -->
				<div class="page-content">
					<#include "/views/ftl/base/shop_manage_right_float.ftl">

					<!-- /section:settings.box -->					<div class="page-content-area">
						<div class="page-header">
							<h1>
								订单管理
								<small>
									<i class="ace-icon fa fa-angle-double-right"></i>
                                    								</small>
						  </h1>
						</div><!-- /.page-header -->

						<!--<div class="row">
							<div class="col-xs-12">
                            <p>
							<button type="button" class="btn btn-white btn-primary" onclick="location.replace(&#39;orderlist.php&#39;);">所有订单</button>
                            <button type="button" class="btn btn-white btn-primary" onclick="location.replace(&#39;orderlist.php?zt=1&#39;);">已付款</button>
                            <button type="button" class="btn btn-white btn-primary" onclick="location.replace(&#39;orderlist.php?zt=2&#39;);">已发货</button>
                            <button type="button" class="btn btn-white btn-primary" onclick="location.replace(&#39;orderlist.php?zt=3&#39;);">已确认</button>
                            <button type="button" class="btn btn-white btn-primary" onclick="location.replace(&#39;orderlist.php?zt=4&#39;);">退款</button>
                            	
					</p>-->
					<form method="POST" action="shopmanage/TranOrder_orderListPage">
					<div name="forms" style="margin: 5px;" >
					<span>订单状态:&nbsp;&nbsp;</span><select name="orderStatus" style="width:auto">
                   	 <option value="0" <#if requestVo.orderStatus??><#if requestVo.orderStatus==0>selected='true'</#if></#if>>所有订单</option>
                   	 <option value="20" <#if requestVo.orderStatus??><#if requestVo.orderStatus==20>selected='true'</#if></#if>>已付款</option> 
                   	 <option value="30" <#if requestVo.orderStatus??><#if requestVo.orderStatus==30>selected='true'</#if></#if>>已发货</option> 
                   	 <option value="40" <#if requestVo.orderStatus??><#if requestVo.orderStatus==40>selected='true'</#if></#if>>完成</option>  
                    </select>
					</div> 
					<!-- 1-->
					<div name="forms"   style="margin: 5px; display: flex;">
                	<span>订单时间:&nbsp;&nbsp;</span>
					<input type="hidden" name="type" value="keydate">
                    <div class="input-daterange input-group">
						<input type="text" class="input-sm form-control" name="startDate" value="${(requestVo.startDate)!''}" readonly="readonly"  onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})">
						<span class="input-group-addon">
							<i class="fa fa-exchange"></i>
						</span>
						<input type="text" class="input-sm form-control" name="endDate"  value="${(requestVo.endDate)!''}"  readonly="readonly" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"> 
                    </div> 
                </div>
                <!-- 1 end-->
                <!-- 2 -->
					<div name="forms" style="margin: 5px;" >
                    <span>订单搜索:&nbsp;&nbsp;</span>
                    <select name="keyWordType" style="width:auto">
                    	<option value="1" <#if requestVo.keyWordType??><#if requestVo.keyWordType==1>selected='true'</#if></#if>>订单编号</option>
						<option value="2" <#if requestVo.keyWordType??><#if requestVo.keyWordType==2>selected='true'</#if></#if>>来源订单号</option>
                    </select>
                    &nbsp;&nbsp;<input type="text" style="width:180px" name="keyWord" value="${(requestVo.keyWord)!''}">&nbsp;&nbsp;
                    <input type="submit" value="搜索">
                </div>
                </form>
                <!-- 2 end-->
                <br>
                    
	                
	                            	
								<table id="sample-table-1" class="table table-striped table-bordered table-hover">
											<thead>
												<tr>
													<th class="center">
														<label class="position-relative">
															<input type="checkbox" class="ace">
															<span class="lbl"></span>
														</label>
													</th>
													<th>订单编号&amp;名称</th>
													<th>价格/佣金</th>
													<th>成交时间</th>
													<th>状态</th>
													<th></th>
												</tr>
											</thead>

											<tbody>  
											
 <#if (pager.list??)> 
         <#if ((pager.list?size)>0)>
          <#list pager.list as bean>           
	<tr>
		<td class="center">
			<label class="position-relative">
				<input type="checkbox" class="ace">
				<span class="lbl"></span>
			</label>
		</td>

		<td>
			${(bean.tradeNo)!''}<br>${(bean.productSubject)!''}													</td>

		<td>${(bean.payMoney)?c}元 / 0元</td>
		<td>${(bean.createTime)!''}</td> 
		<td><span class="label <#if bean.verifyStatus == 1>label-warning arrowed arrowed-right<#elseif bean.verifyStatus ==20> label-success arrowed-in arrowed-in-right<#elseif bean.verifyStatus ==30> label-pink arrowed arrowed-right</#if>"><#list tradeOrderVerifyStatusEnum as enum ><#if (bean.verifyStatus==enum.status)>${enum.description}</#if></#list>&nbsp;&nbsp; <#list tradeOrderStatusEnum as enum ><#if (bean.orderStatus==enum.status)>${enum.description}</#if></#list></span></td>
		

		<td>
			<div class="hidden-sm hidden-xs btn-group">
				 
				<a href="shopmanage/TranOrder_singleOrderPage?tranOrderId=${(bean.tradeNo)!''}" class="btn btn-xs btn-info" title="查看详情">
					<i class="ace-icon fa fa-pencil bigger-120"></i>
				</a>

			</div>

			<div class="hidden-md hidden-lg">
				<div class="inline position-relative">
					<a class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown" data-position="auto">
						<i class="ace-icon fa fa-cog icon-only bigger-110"></i>
					</a>

					<ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">
						

						<li>
							<a href="shopmanage/TranOrder_singleOrderPage?tranOrderId=${(bean.tradeNo)!''}" class="tooltip-success" data-rel="tooltip" title="" data-original-title="查看详情">
								<span class="green">
									<i class="ace-icon fa fa-pencil-square-o bigger-120"></i>
								</span>
							</a>
						</li>

					</ul>
				</div>
			</div>
		</td>
	</tr>
     </#list >
          </#if>
          </#if>
 												
											</tbody>
										</table>
			 
  	<#import "/views/ftl/base/shop_manage_pager.ftl" as p>
   	<@p.pager pager = pager baseUrl = "shopmanage/TranOrder_orderListPage" parameterMap={ "startDate":(startDate)!'',"endDate":(requestVo.endDate)!'',"keyWordType":(requestVo.keyWordType)!'',"keyWord":(requestVo.keyWord)!'',"orderStatus":(requestVo.orderStatus)!''} /> 


<p>   </p>

                    <p></p>
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content-area -->
				</div><!-- /.page-content -->
			</div><!-- /.main-content -->

 

<#include "/views/ftl/base/shop_manage_footer.ftl"> 
<script type="text/javascript" src="${basePath}js/My97DatePicker/WdatePicker.js"></script>
<div id="limiterBox" class="limiterBox" style="position: absolute; display: none;"></div>
</body></html>